/**
 * 2018年12月18日上午6:28:46
 * @author 谢进财
 */
package com.baihang.project.ds.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.baihang.framework.dao.BaseDao;
import com.baihang.project.ds.entity.ShouCangEntity;
import com.baihang.project.ds.entity.dbMap.ShouCangRowMapper;

@Repository
public class ShouCangDao extends BaseDao {
	private static Logger logger = LoggerFactory.getLogger(ShouCangDao.class);
	@Autowired
	private ShouCangRowMapper rowMapper;
	
	public List<ShouCangEntity> queryForFangYuanList(String sql){
		logger.info(sql);
		List<ShouCangEntity>  modelList = null;
		try {
			modelList = super.getJdbcTemplate().query(sql, rowMapper);
		}catch (Exception e) {
			logger.info("查询词源模型失败");
		}
		return modelList;
	}
}
